<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #ball {
            background-color: red;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            position: absolute;
        }
    </style>
</head>
<body>
<form action="http://www.baidu.com" id="form1">
    <textarea id="t"></textarea>
    <input type="submit">
</form>
<script>
    var t = document.getElementById('t')
    t.onkeydown = function(e){
        console.log(e);
        if (e.key.toLowerCase() == 'enter' && e.ctrlKey == true){
//           alert('haha');
            document.getElementById('form1').submit();
        }
//        if (e.)
    }
</script>
</body>
</html>